﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PurchaseStatistics.aspx.cs" Inherits="Automobile.service.UI.PurchaseStatistics" %>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico">
    <link rel="Shortcut Icon" href="/favicon.ico" />
    
    <link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />

    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="lib/icheck/icheck.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />

    <script src="BootstrapSouce/js/jquery.min.js"></script>
    <link href="BootstrapSouce/css/bootstrap.min.css" rel="stylesheet" />
    <script src="BootstrapSouce/js/bootstrap.min.js"></script>

   
    <title>采购统计</title>
</head>
<body>
    <form runat="server">
        <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 统计报表 <span class="c-gray en">&gt;</span> 采购统计 <a class="btn btn-success radius r" style="line-height: 1.6em; margin-top: 3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a></nav>
        <div class="page-container">
            <div class="text-c">
                 
		<input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'logmax\')||\'%y-%M-%d\'}'})" id="logmin" runat="server" class="input-text Wdate" style="width:120px;">
		-
		<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'logmin\')}',maxDate:'%y-%M-%d'})" id="logmax" runat="server" class="input-text Wdate" style="width:120px;">
	

                
               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  类型： 
                <select id="PurChase_InOut" name="PurChase_InOut" runat="server">
                    <option value="采购">采购商品</option>
                    <option value="返厂">采购返厂</option>
                </select> 
                
                <button onserverclick="Unnamed_ServerClick" type="button" class="btn btn-success" runat="server" ><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
                涉及金额：<label id="q" runat="server"></label>
            </div>
            
            

            <asp:Repeater ID="Repeater1" runat="server" >
                <HeaderTemplate>
                    <%-- 头模板--%>
                    <table class="table table-border table-bordered table-bg">
                        <thead>
                            <tr>
                                <th scope="col" colspan="9">采购单列表</th>
                            </tr>
                            <tr class="text-c">

                                <th>采购编码</th>
                                <th>采购单号</th>
                                <th>制单日期</th>
                                <th>单据状态</th>
                                <th>商品总额</th>
                                <th>供应商</th>
                                <th>仓库</th>
                                <th>经办人</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                </HeaderTemplate>
                <ItemTemplate>
                    <%--项模板--%>

                    <tr class="text-c">

                        <td><%#Eval("Purchase_Id") %></td>
                        <td><%#Eval("Purchase_curom") %></td>
                        <td><%#Eval("Purchase_date") %></td>
                        <td id="state"><%#Convert.ToInt32( Eval("Purchase_State"))==0?"未审核":"已审核" %></td>
                        <%--<td><%#Eval("Purchase_State") %></td>--%>
                        <td><%#Eval("SumMoney") %></td>
                        <td><%#Eval("Supplier_Name") %></td>
                        <td><%#Eval("WareHose_Name") %></td>
                        <td><%#Eval("Employee_Name") %></td>
                        <td id="shenhe">
                            <%--<asp:Button  onclick="admin_add('添加商品','PurchaseStatisticsShow.aspx','800','500')" ID="Button1" runat="server" Text="详情" CommandName="Into" CommandArgument='<%#Eval("Purchase_Id") %>'/>--%>
                            <a href="javascript:;" onclick="product_upt('详情','PurchaseStatisticsShow.aspx?id='+'<%#Eval("Purchase_Id") %>','800','500')" class="btn btn-primary radius">详情</a>
                        </td>
                    </tr>

                </ItemTemplate>
                <FooterTemplate>
                    <%--尾部模板--%>
                   </table>
                </FooterTemplate>
            </asp:Repeater>


        </div>
        <script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
        <script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
        <script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script>
        <script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
        <script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
        <script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script>
        
    </form>
</body>
</html>
<script>
    function product_upt(title, url, w, h) {
        layer_show(title, url, w, h);
    }
</script>
